# Contributor: Sodface <sod@sodface.com>
# Maintainer: Sodface <sod@sodface.com>
pkgname=clifm
pkgver=1.21
pkgrel=0
pkgdesc="CLI file manager"
url="https://github.com/leo-arch/clifm"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	acl-dev
	bsd-compat-headers
	file-dev
	gettext-tiny-dev
	libcap-dev
	readline-dev
	"
options="!check" # no test suite
subpackages="$pkgname-doc $pkgname-bash-completion $pkgname-zsh-completion $pkgname-fish-completion"
source="https://github.com/leo-arch/clifm/releases/download/v$pkgver/clifm-$pkgver.tar.gz
	begin-decls.patch
	"

build() {
	make
}

package() {
	make PREFIX=/usr MANDIR=/usr/share/man DESTDIR="$pkgdir" install
}

sha512sums="
c19b63ef7e158871a1342aade2bc24780d5c54b1a6d5d4403ac1a4fa34360c5da3460f7be71ecc67e6b680ab23c2ffd5d7f5a286f19713362e0b2411ca663ab7  clifm-1.21.tar.gz
3a7292195562e4bb2b41d7d3179c3038b89fd4b5db742f6c6032e49e9646790a0a738cfa8f42b83c3b0b0ad0c73b0832fa8fdf07b3236367e8f52f494901579b  begin-decls.patch
"
